package com.jiawa.train.business.service;

import com.jiawa.train.business.domain.po.DailyTrainSeat;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jiawa.train.business.req.DailyTrainSeatQueryReq;
import com.jiawa.train.business.req.DailyTrainSeatSaveReq;
import com.jiawa.train.business.resp.DailyTrainSeatQueryResp;
import com.jiawa.train.common.resp.PageResp;

import java.util.Date;

/**
 * <p>
 * 每日座位 服务类
 * </p>
 *
 * @author hrz
 * @since 2025-09-07
 */
public interface IDailyTrainSeatService extends IService<DailyTrainSeat> {


    PageResp<DailyTrainSeatQueryResp> queryList(DailyTrainSeatQueryReq req);

    void delete(Long id);

    void saveDailyTrainSeat(DailyTrainSeatSaveReq req);

    void genDaily(Date date, String code);

    int countSeat(Date date, String trainCode);
}
